package cn.lang.auth.pojo.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author Lang 1102076808@qq.com
 * @description 用户登录
 * @date 2020-06-21 10:35
 */

@Data
public class LoginUserVo {

	@NotEmpty(message = "请输入用户名")
	@Length(min=6,max = 12,message="用户名长度必须位于6到12之间")
	private String username;
	@NotEmpty(message = "请输入密码")
	@Pattern(regexp = "^(?![0-9]+$)(?![a-z]+$)(?![A-Z]+$)(?!([^(0-9a-zA-Z)])+$).{6,20}$", message = "密码包含数字，英文，字符中的两种以上，长度6-20")
	private String password;
	//@NotEmpty(message = "请输入验证码")
	private String captcha;
}
